package com.shd.edanpei.presenter.contract;

import android.os.Bundle;

import com.shd.edanpei.ui.adapter.OrderAdapter;
import com.shd.edanpei.base.BaseIPresenter;
import com.shd.edanpei.base.BaseIView;
import com.shd.edanpei.view.RefreshLayout;

/**
 * Created by mc on 2018/9/25.
 * yang-wen-wen
 */

public interface ManagerContract {

    interface ManagerIView extends BaseIView {

        OrderAdapter getAdapter();

        RefreshLayout getRefreshLayout();

        void setUnRead(boolean newMessageNotRead);
    }

    interface ManageIPresenter extends BaseIPresenter {

        void refresh(int type, int orderStatus);

        void loadMore(int type, int orderStatus);


        void userRemove(int orderID, int orderType, int index);

        void bankRemove(int orderID, int orderType, int index);

        void againApply(int orderID, int orderType, int index);

        void sureGetLone(Bundle bundle);

        //修改订单
        void updataOrder(Bundle bundle, int orderID, int orderType, int status);

        /**
         * 发单者撤销订单
         */
        void userUndo(int orderID, int orderType, int index, boolean payDeposit);

        /**
         * 接单者撤销订单
         */
        void bankUndo(int orderID, int orderType, int index, boolean payDeposit);


    }
}
